package com.tcl.dict.ui;





import android.annotation.SuppressLint;
import android.app.Fragment;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;


@SuppressLint("NewApi")
public class SearchFragment extends Fragment {
	
	private WebView contentView = null;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		System.out.println("@TCL:createView");
		//View view = inflater.inflate(R.layout.seach_result, container, false);
		//contentView = (WebView) view.findViewById(R.id.search_result);
		return null;
	}
	
	public WebView getContentView() {
		return contentView;
	}
	
	public void loadContent(String content){
	
		getContentView().loadData(content, "text/html", "utf-8");
		
	}
	
	public void loadUri(String url) {
		getContentView().loadUrl(url);
		
	}

}
